package com.kaifamiao.month03.day0315;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Time {

    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date);
        System.out.println(date.getTime());
        SimpleDateFormat  df = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        System.out.println("当前时间：" + df.format(date));
    }
}
